package com.cax.module.tran.domain.dto;


import com.cax.common.core.validate.Group;
import com.cax.common.domain.base.dto.PageDTO;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 培训证书管理表 DTO
 * @author makejava
 * @date 2024-09-24 11:31:31
 */
@Data
@ApiModel(value = "TrainCertificateAddOrUpdDTO", description = "培训证书管理表DTO")
public class TrainCertificateAddOrUpdDTO implements Serializable {
	private static final long serialVersionUID = -26658467156300303L;

    @ApiModelProperty(value = "培训证书管理表-主键id")
	@NotNull(message = "参数id不能为空", groups = {Group.Upd.class })
	@Min(value = 1, message = "参数id不能为空", groups = {Group.Upd.class })
    private Integer id;

	@ApiModelProperty(value = "证书名称")
	@NotBlank(message = "参数certificateName不能为空", groups = { Group.Add.class, Group.Upd.class })
    private String certificateName;

	@ApiModelProperty(value = "培训人姓名")
	@NotBlank(message = "参数name不能为空", groups = { Group.Add.class, Group.Upd.class })
    private String name;

	@ApiModelProperty(value = "身份证号码")
	@NotBlank(message = "参数identityCard不能为空", groups = { Group.Add.class, Group.Upd.class })
    private String identityCard;

	@ApiModelProperty(value = "证书编号")
	@NotBlank(message = "参数certificateCode不能为空", groups = { Group.Add.class, Group.Upd.class })
    private String certificateCode;

	@ApiModelProperty(value = "备注")
    private String remark;

	@ApiModelProperty(value = "文件不能为空")
	@NotEmpty(message = "参数fileIds不能为空", groups = { Group.Add.class, Group.Upd.class })
	private List<Long> fileIds;

}

